home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 6
/
FM Towns Free Software Collection 6.iso
/
t_os
/
igo
/
src
/
mddesk.c
< prev
next >
Wrap
Text File
|
1993-07-08
|
2KB
|
86 lines
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
/* 使用する部品の宣言 */
/* About画面の変数の定義 */
int alertId = -1 ;
int aboutMesId[2] = -1 ;
int aboutBtnId = -1 ;
/* 背景画面の変数の定義 */
int backId = -1 ;
int buttonId = -1 ;
int deskTopId = -1 ;
int deskTopBtnId[2] = -1 ;
int menuBarId = -1 ;
int mitemBarId[4] = -1 ;
int menu0Id = -1 ;
int mitem0Id = -1 ;
int menu1Id = -1 ;
int mitem1Id[7] = -1 ;
int menu2Id = -1 ;
int mitem2Id[6] = -1 ;
int menu3Id = -1 ;
int title_dispdialogId = -1 ;
int title_messageId[9] = -1 ;
int textcommentId[8] = -1 ;
/* initDataMIDESK:mitem0Id:MJ_MITEML40の呼び出し関数 */
/* Aboutを表示するための関数 */
int showAboutFunc(kobj, messId, argc, pev, trigger)
int kobj ;
int messId ;
int argc ;
EVENT *pev ;
int trigger ;
{
/* オブジェクトをダイアログに取り付ける */
MMI_SendMessage( alertId , MM_ATTACH , 1 , backId ) ;
/* alertIdで示されるオブジェクトを表示する */
MMI_SendMessage( alertId , MM_SHOW , 0 ) ;
return NOERR ;
}
/* initDataMIABOU:aboutBtnId:MJ_DBUTTONL40の呼び出し関数 */
/* Aboutを消去するための関数 */
int eraseAboutFunc(kobj, messId, argc, pev, trigger)
int kobj ;
int messId ;
int argc ;
EVENT *pev ;
int trigger ;
{
/* alertIdで示されるオブジェクトを消す */
MMI_SendMessage( alertId , MM_ERASE , 0 ) ;
/* オブジェクトをダイアログから取り外す */
MMI_SendMessage( alertId , MM_DETACH , 0 ) ;
return NOERR ;
}
/* initDataMIDESK:deskTopBtnId[1]:MJ_ICONL40の呼び出し関数 */
/* initDataMIDESK:mitem1Id[4]:MJ_MITEML40の呼び出し関数 */
int exitFunc(kobj, messId, argc, pev, trigger)
int kobj ;
int messId ;
int argc ;
EVENT *pev ;
int trigger ;
{
MMI_SetHaltFlag( TRUE ) ;
return NOERR ;
}